<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>文档批量管理</title>
<link href="css_body.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" media="all" href="../include/calendar/calendar-win2k-1.css" title="win2k-1" />
<script type="text/javascript" src="../include/calendar/calendar.js"></script>
<script type="text/javascript" src="../include/calendar/calendar-cn.js"></script>
<script src="main.js" language="javascript"></script>
<script language='javascript'>
	function ShowHideTime()
	{
		var selBox = document.getElementById('seltime');
		var obj = document.getElementById('seltimeField');
		if(selBox.checked) obj.style.display = "block";
		else  obj.style.display = "none";
	}
	function ShowHideMove()
	{
		var selBox = document.getElementById('moveradio');
		var obj = document.getElementById('moveField');
		if(selBox.checked) obj.style.display = "block";
		else  obj.style.display = "none";
	}
</script>
</head>
<body>
<div class="bodytitle">
	<div class="bodytitleleft"></div>
	<div class="bodytitletxt">批量管理</div>
</div>
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#E2F5BC;">
  <form name="form1" action="content_batchup_action.php" target="stafrm">
    <input type="hidden" name="dopost" value="go">
    <tr> 
      <td height="20" colspan="2" bgcolor="#EDF9D5"> <table width="98%" border="0" cellpadding="0" cellspacing="0">
          <tr> 
            <td width="30%" height="18"><strong>&nbsp;文档批量管理：</strong></td>
            <td width="70%" align="right">&nbsp;</td>
          </tr>
        </table></td>
    </tr>
    <tr> 
      <td width="177" align="center" bgcolor="#FFFFFF">选定栏目：</td>
      <td width="791" bgcolor="#FFFFFF"> 
        <?php 
        $opall = 1;
        echo GetTypeidSel('form1','typeid','selbt1',0);
        ?>
	  </td>
    </tr>
    <tr> 
      <td height="20" align="center" bgcolor="#FFFFFF">起始ID：</td>
      <td height="20" bgcolor="#FFFFFF">开始： 
        <input name="startid" type="text" id="startid" size="10">
        结束： 
        <input name="endid" type="text" id="endid" size="10"></td>
    </tr>
    <tr> 
      <td height="20" align="center" bgcolor="#FFFFFF">档案发布时间：</td>
      <td height="20" bgcolor="#FFFFFF"><table width="500" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td colspan="2"> <label> 
              <input name="seltime" type="checkbox"  id="seltime" value="1" onClick="ShowHideTime()">
              启用时间筛选（仅移动或删除文档可用该选项）</label></td>
          </tr>
          <tr id='seltimeField' style='display:none' height='20'> 
            <td width="250">开始： 
              <?php 
			$nowtime = GetDateTimeMk(mytime()-(24*3600*30));
			echo "<input name=\"starttime\" value=\"$nowtime\" type=\"text\" id=\"starttime\" style=\"width:150\">";
			echo "<input name=\"selstarttime\" type=\"button\" id=\"selkeyword\" value=\"选择\" onClick=\"showCalendar('starttime', '%Y-%m-%d %H:%M:00', '24');\">";
			?>
            </td>
            <td width="250">结束： 
              <?php 
			$nowtime = GetDateTimeMk(mytime());
			echo "<input name=\"endtime\" value=\"$nowtime\" type=\"text\" id=\"endtime\" style=\"width:150\">";
			echo "<input name=\"selendtime\" type=\"button\" id=\"selkeyword\" value=\"选择\" onClick=\"showCalendar('endtime', '%Y-%m-%d %H:%M:00', '24');\">";
			?>
            </td>
          </tr>
        </table></td>
    </tr>
    <tr> 
      <td height="20" align="center" bgcolor="#FFFFFF">操作：</td>
      <td height="20" bgcolor="#FFFFFF"> <input name="action" type="radio"  id="checkradio" onClick="ShowHideMove()" value="check" checked>
        审核文档 
        <input name="action" type="radio"  value="makehtml" id="makehtmlradio" onClick="ShowHideMove()">
        更新HTML 
        <input name="action" type="radio"  value="move" id="moveradio" onClick="ShowHideMove()">
        移动文档 
        <input name="action" type="radio"  id="delradio" value="del" onClick="ShowHideMove()">
        删除文档</td>
    </tr>
    <tr height="20" bgcolor="#FFFFFF"> 
      <td height="20" align="center" bgcolor="#FFFFFF">移动选项：</td>
      <td height="20" bgcolor="#FFFFFF"> 
        <?php 
        $opall = 1;
        echo "<span id='moveField' style='display:none'>新位置：";
		echo GetTypeidSel('form1','newtypeid','selbt3',0);
		echo "<br/>";
        echo "标题关键字：<input id='movekeyword' type='text' name='keyword' value='' style='width:220;'></span>";
        ?>
      </td>
    </tr>
    <tr> 
      <td height="31" colspan="2" bgcolor="#F8FBFB" align="center"><input name="b112" type="button" value="开始操作" onClick="document.form1.submit();" class="inputbut" /></td>
    </tr>
  </form>
  <tr bgcolor="#E5F9FF"> 
    <td height="20" colspan="2" bgcolor="#EDF9D5"> <table width="100%">
        <tr> 
          <td width="74%"><strong>进行状态： </strong></td>
          <td width="26%" align="right"> <script language='javascript'>
            	function ResizeDiv(obj,ty)
            	{
            		if(ty=="+") document.all[obj].style.pixelHeight += 50;
            		else if(document.all[obj].style.pixelHeight>80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50;
            	}
            	</script>
            [<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>] 
          </td>
        </tr>
      </table></td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td colspan="2" id="mtd">
	<div id='mdv' style='width:100%;height:250px;'> 
        <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe>
      </div>
	 </td>
  </tr>
</table>
</body>
</html>
